﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=1">
    <meta name="format-detection" content="telephone=no">
    <meta charset="UTF-8">
    <title>两颗骰子</title>

    <style>
        .father{
            width: 100px; height: 100px; border: 1px solid red;
        }
        .child{
            width: 20px; height: 20px; border: 1px solid blue; border-radius: 50%;
        }
        .father2{
            display:flex;justify-content: space-between;
        }
        .father3{
            display:flex; flex-direction: column; justify-content: space-between;
        }
        .father4{
            display:flex; flex-direction: column; align-items:center; justify-content:space-between;
        }
        .father5{
            display:flex; flex-direction:column; justify-content:space-between; align-items: flex-end;
        }
        .father6{
            display:flex;
        }
        .father6 .child:nth-child(2){
            align-self:center;
        }
    </style>
</head>
<body>
    <h1>两颗骰子</h1>
    <div class="father father2">
        <div class="child"></div>
        <div class="child"></div>
    </div>
    <br />
    <div class="father father3">
        <div class="child"></div>
        <div class="child"></div>
    </div>
    <br />
    <div class="father father4">
        <div class="child"></div>
        <div class="child"></div>
    </div>
    <br />
    <div class="father father5">
        <div class="child"></div>
        <div class="child"></div>
    </div>
    <br />
    <div class="father father6">
        <div class="child"></div>
        <div class="child"></div>
    </div>
</body>
</html>